<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib prefix="sys" uri="/WEB-INF/tld/sys.tld" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>金融机构上报配置列表页</title>
    <style type="text/css">
        .searchArea .fieldBox .label {
            width: 70px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    </style>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>
<body class="iframeBody">

<div class="Wrapper">
    <div id="pageInTab" class="pageInTab">
        <div tabid="tabA" title="上报状态解析" lselected="true">
            <div class="searchArea">
                <form id="searchBar">
                    <div class="fieldset1 clearFix">
                        <div  class="fieldBox">
                            <div class="label">金融局入库状态</div>
                            <div class = "field">
                                <select name="asynCode" id="asynCode" data-value=" ">
                                    <option value=" " seleted>请选择</option>
                                    <option value="success">入库成功</option>
                                    <option value="hold">等待处理</option>
                                    <option value="failed">入库失败</option>
                                    <option value="isNot">批次号无效</option>
                                </select>
                            </div>
                        </div>

                        <div class="clearFix"></div>
                        <div class="formBtns notRight">
                            <span id="searchBtn" class="sq-button sq-button-round"></i>查询</span>
                            <span id="clearBtn" class="sq-button sq-button-round"></i>清空</span>
                        </div>
                    </div>
                </form>
            </div>

            <div id="ligergrid1" class="sq-grid"></div>
        </div>
    </div>
</div>


<script type="text/javascript">
    var grid = null;
    var callback = null;
    var pageInTab = null;
    var loadedTabs = [];
    var pageInApp = {
        flag: true
    };
    $(function () {
        grid = $("#ligergrid1").ligerGrid({
            url: '<%=path%>/fgi/fgiPostRes/initList.do',
            method: 'get',
            columns: [
                {display: '序号', name: 'id', width: 200, align: 'left', enabledSort: false, hide: true},
                {display: '批次号', name: 'batchNum', width: 100, align: 'center', enabledSort: false},
                {display: '数据类型', name: 'infTypeNm', width: 200, align: 'left', enabledSort: false},
                {display: '金融局入库状态', name: 'asynCodeNm', width: 200, align: 'left', enabledSort: false},
                {display: '金融局入库信息', name: 'asynMessage', width: 100, align: 'center', enabledSort: false},
                {display: '异常次数', name: 'asynErrCount', width: 100, align: 'center', enabledSort: false},
            ],
            pageSize: 10,
            root: 'rows',
            record: 'total',
            hideLoadButton: true,
            width: '100%',
            height: '100%',
            heightDiff: -2,
            checkbox: false,
            rownumbers: true,
            allowUnSelectRow: true,
            alternatingRow: true,
            frozen: false
        });
        grid.setHeight(100);

        $("#searchBar").ligerForm();

        $("#pageloading").hide();

        //initTab();
        /* 查询 */
        $("#searchBtn").click(function (event) {
            var form = liger.get("searchBar");
            var data = form.getData();
            for (name in data) {
                grid.setParm(name, data[name]);
            }
            grid.reload();
        });

        /* 清空 */
        $("#clearBtn").click(function (event) {
            $("#resetBtn").click();  //重置 input-text
            var form = liger.get("searchBar");
            form.setData({  //重置select等特殊表单
                "fileNm": " ",
                "uploadUsrNm": " "
            });
        });

        callback = function () {
            grid.reload();
        };

        $("#file1").attr("accept", "application/vnd.ms-excel");
    });

    function dialogCallback() {
        $.ligerDialog.hide();
        grid.reload();
    }

</script>
</body>
</html>
